package com.houtai.dao;

import com.houtai.bean.TdActivityWorks;
import com.houtai.bean.dto.avtivity.works.TdActivityWorksListDto;
import com.houtai.bean.vo.activity.works.TdActivityWorksDetail;
import com.houtai.bean.vo.activity.works.TdActivityWorksDetailList;
import com.houtai.bean.vo.activity.works.TdActivityWorksList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TdActivityWorksDao {

    /**
     * @Purpose:    添加活动作品
     * @param:      tdActivityWorks
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void insertTdActivityWorks(TdActivityWorks tdActivityWorks);
    /**
     * @Purpose   查找活动作品列表
     * @param     tdActivityWorksListDto
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    List<TdActivityWorksList>
     */
    List<TdActivityWorksList> findTdActivityWorksList(TdActivityWorksListDto tdActivityWorksListDto);
    /**
     * @Purpose   查找活动作品详情
     * @param     works_id
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    TdActivityWorksDetail
     */
    TdActivityWorksDetail findTdActivityWorksDetail(@Param("works_id")int works_id);
    /**
     * @Purpose:    更新评论数量
     * @param:      user
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void updateTdActivityWorksCommentsSize(TdActivityWorksDetail tdActivityWorksDetail);
    /**
     * @Purpose   查找活动作品列表
     * @param     works_id
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    List<TdActivityWorksDetailList>
     */
    List<TdActivityWorksDetailList> findTdActivityWorksDetailList(@Param("works_id")int works_id,
                                                                  @Param("user_id")int user_id);
    /**
     * @Purpose   查找用户作品列表
     * @param     user_id
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    List<TdActivityWorksList>
     */
    List<TdActivityWorksList> findTdActivityWorksListByUserId(@Param("user_id")int user_id);
}
